package com.sc.VenusQueryBeta.model.home.tabs;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.home.HomeApi;
import com.sc.VenusQueryBeta.contract.home.tabs.GuiBInContract;
import com.sc.VenusQueryBeta.model.bean.home.VipListBean;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *贵宾厅模型
 */

public class GuiBinModel extends BaseModel implements GuiBInContract.IGuiBInModel {

    public static GuiBinModel newInstance() {
        return new GuiBinModel();
    }

    @Override
    public Observable<Boolean> recordItemIsRead(String key) {
        return null;
    }

    @Override
    public Observable<VipListBean> getVipList(int type) {
        return RetrofitCreateHelper.createApi(HomeApi.class, Host.Host).getVipList(type).compose(RxHelper.<VipListBean>rxSchedulerHelper());
    }

    @Override
    public Observable<VipListBean> getVipList1(int type) {
        return RetrofitCreateHelper.createApi(HomeApi.class, Host.Host).getVipList(type).compose(RxHelper.<VipListBean>rxSchedulerHelper());
    }
}
